package peerToPeerFacebook.proj;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import peerToPeerFacebook.src.edu.washington.cs.cse490h.lib.Callback;

public interface INode
{
	public abstract void send(int destAddr, int protocol, byte[] payload);
	public abstract void addTimeout(Callback cb, int timer);
	public abstract InputStream getInputStream(String filename)
			throws FileNotFoundException;
	public abstract OutputStream getOutputStream(
			String filename, boolean append) throws IOException;
	public abstract void logSynopticEvent(String eventStr);
	public abstract int getAddr();
	public abstract int maxPacketSize();
}